###############################################
# ORDER OF THE SACRED MAGDALENE
# MAGDALENE SUCCESSION DECISION
#
# Feudal and tribal rulers only.
# Nomads, republics, and theocracies are excluded.
#
# The decision itself does not gate on Grace.
# The confirmation event consumes 50% of current Grace.
###############################################

society_decisions = {

    ggsm_establish_magdalene_succession = {
      
        potential = {
            society_member_of = ggsm_order_sacred_magdalene
			society_rank >= 4
            is_landed = yes

            OR = {
                is_feudal = yes
                is_tribal = yes
            }

            NOT = {
                has_character_flag = ggsm_magdalene_succession_enacted
            }
        }

        allow = {
            is_inaccessible_trigger = no
            prisoner = no
            in_command = no
        }

        effect = {
            long_character_event = {
                id = ggsm.600
            }
        }

        ai_will_do = {
            factor = 1
        }
    }
}
